package com.norteksoft.erm.model;

import java.util.Map;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 * 
 * @author Jiffy
 * 
 */
public class Ticket {

	private Integer ID;// 数据库主键

	private String userName;// 用户名

	private String realName;// 真实姓名

	private String remoteAddr;// 远程IP

	private Long lastAccessedTime;// 最后访问时间

	private String loginTime;// 登录时间

	private Map sessions;

	public int hashCode() {
		return new HashCodeBuilder().append(ID).append(userName).append(
				realName).append(remoteAddr).append(lastAccessedTime).append(
				loginTime).toHashCode();
	}

	public String getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(String loginTime) {
		this.loginTime = loginTime;
	}

	public Long getLastAccessedTime() {
		return lastAccessedTime;
	}

	public void setLastAccessedTime(Long lastAccessedTime) {
		this.lastAccessedTime = lastAccessedTime;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getRemoteAddr() {
		return remoteAddr;
	}

	public void setRemoteAddr(String remoteAddr) {
		this.remoteAddr = remoteAddr;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getID() {
		return ID;
	}

	public void setID(Integer id) {
		ID = id;
	}

}
